﻿using Digitalmes.Domain.Enums;

namespace Digitalmes.Scada.Models;

/// <summary>
/// 出站请求参数
/// </summary>
internal sealed class ArchiveInput
{
    /// <summary>
    /// 线体编号
    /// </summary>
    [NotNull]
    public string? LineCode { get; set; }

    /// <summary>
    /// 工位编号
    /// </summary>
    [NotNull]
    public string? OpCode { get; set; }

    /// <summary>
    /// SN 码
    /// </summary>
    [NotNull]
    public string? SN { get; set; }

    /// <summary>
    /// 出站的状态结果
    /// </summary>
    public PassResultEnum PassResult { get; set; }

    /// <summary>
    /// 配方号
    /// </summary>
    public string? FormualNo { get; set; }

    /// <summary>
    /// 操作人
    /// </summary>
    public string? Operator { get; set; }

    /// <summary>
    /// 班次
    /// </summary>
    public string? Shift { get; set; }

    /// <summary>
    /// RFID 号码
    /// </summary>
    public string? Rfid { get; set; }

    /// <summary>
    /// CT 时长
    /// </summary>
    public double? CycleTime { get; set; }

    [NotNull]
    public IReadOnlyList<PayloadData>? AttachData {  get; set; }
}
